/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package unipiloto.edu.co.generador_reportes.service.entity;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author David
 */
@Entity
@Table(name = "REPORT")
@NamedQueries({
    @NamedQuery(name = "Reporte.findAll", query = "SELECT r FROM Report r"),
    @NamedQuery(name = "Reporte.findByReportName", query = "SELECT r FROM Report r WHERE r.reportName = :reportName"),
    @NamedQuery(name = "Reporte.findByReportPath", query = "SELECT r FROM Report r WHERE r.reportPath = :reportPath")})
public class Report implements Serializable {

    @Id
    private String reportName;
    @Basic
    private String reportPath;

    public Report() {
    }

    public Report(String reportName, String reportPath) {
        this.reportName = reportName;
        this.reportPath = reportPath;
    }

    public String getReportName() {
        return reportName;
    }

    public void setReportName(String reportName) {
        this.reportName = reportName;
    }

    public String getReportPath() {
        return reportPath;
    }

    public void setReportPath(String reportPath) {
        this.reportPath = reportPath;
    }
}
